package model;

public class User {
	private int id;
	private String firstname;
	private String lastname;
	private String login;
	private String email;
	private String address;
	private String password;
	private int group; //default value '0' <-> user group
	private int gender;
	private String date;
	private String date_last_conn;
	
	//default constructor
	public User() {
	}
	
	public User(User user) {
		this(user.id,
			user.firstname,
			user.lastname,
			user.login,
			user.email,
			user.address,
			user.password,
			user.group,
			user.gender,
			user.date,
			user.date_last_conn);
	}
	
	//constructor with parameters
	public User(int id, String firstname, String lastname, String login,
			String email, String address, String password, int group,
			int gender, String date, String date_last_conn) {
		this.id = id;
		this.firstname = firstname;
		this.lastname = lastname;
		this.login = login;
		this.email = email;
		this.address = address;
		this.password = password;
		this.group = group;
		this.gender = gender;
		this.date = date;
		this.date_last_conn = date_last_conn;
	}
	
	//getters and setters
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getGroup() {
		return group;
	}
	public void setGroup(int group) {
		this.group = group;
	}
	public int getGender() {
		return gender;
	}
	public void setGender(int gender) {
		this.gender = gender;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getDate_last_conn() {
		return date_last_conn;
	}
	public void setDate_last_conn(String date_last_conn) {
		this.date_last_conn = date_last_conn;
	}	
	
}
